#include <vector>
#include <list>
#include <map>
#include <set>
#include <deque>
#include <queue>
#include <stack>
#include <bitset>
#include <algorithm>
#include <functional>
#include <numeric>
#include <iterator>
#include <utility>
#include <sstream>
#include <iostream>
#include <iomanip>
#include <cstdio>
#include <cmath>
#include <cstdlib>
#include <cctype>
#include <string>
#include <cstring>
#include <cstdio>
#include <cmath>
#include <cstdlib>
#include <ctime>
#define for_size(var, size) \
    for(int var = 0; var < (size); ++var)
#define for_range(var, from, to) \
    for(int var = (from); var < (to); ++var)
#define for_ranges(var, from, to, step) \
    for(int var = (from); var < (to); var += (step))
#define for_each(var, container) \
    for(typeof((container).begin()) var = (container).begin(); var != (container).end(); ++var)

using namespace std;

const int bufsize = 1000000;
int buffer[bufsize];

int main() {
	int p = 0;
	int x;
	while (scanf("%d", &x) == 1) {
		buffer[p++] = x;
		if (p == bufsize) {
			fwrite(buffer, sizeof(int), bufsize, stdout);
			p = 0;
		}
	}
	if (p > 0) {
		fwrite(buffer, sizeof(int), p, stdout);
	}
	return 0;
}
